package com.kc.business.service.impl;

import com.kc.business.domain.BizCommentReply;
import com.kc.business.mapper.BizCommentReplyMapper;
import com.kc.business.service.IBizCommentReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 评论回复service实现
 */
@Service
public class BizCommentReplyServiceImpl implements IBizCommentReplyService {
    @Autowired
    private BizCommentReplyMapper commentReplyMapper;
    /**
     * 评论回复列表
     * @param commentReply
     * @return
     */
    @Override
    public List<BizCommentReply> getList(BizCommentReply commentReply) {
        return commentReplyMapper.select(commentReply);
    }

    /**
     * 评论回复删除
     * @param commentReply
     * @return
     */
    @Override
    public Integer remove(BizCommentReply commentReply) {
        return commentReplyMapper.updateByPrimaryKeySelective(commentReply);
    }
}
